﻿	config.eventcfg = {		selectProject: function(){			//记录目标表格，选择记录后刷新用			var destGrid = this.grid;					//过滤条件			var where_sql = "( project_status = '2' or project_status = '1' ) ";			var where_type = '';			var where_value = '';						//加载数据			var hdcall = function(grid) {				//显示数据				JxUtil.delay(500, function(){										//保存目标表格					grid.destGrid = destGrid;					grid.on('beforedestroy', function(gp){						gp.destGrid = null; delete gp.destGrid;						gp = null;						return true;					});									//设置外键值					grid.fkValue = where_value;					Jxstar.loadData(grid, {where_sql:where_sql, where_value:where_value, where_type:where_type});				});			};			//显示数据			var define = Jxstar.findNode('project_select');			Jxstar.showData({				filename: define.gridpage,				title: define.nodetitle,				pagetype: 'selgrid1',				nodedefine: define,				callback: hdcall			});		}	};